<%@ include file="/WEB-INF/views/framework/global.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>用户注册</title>
<link rel="stylesheet" href="${theme_path}/regist_index.css"
	type="text/css" />
</head>
<body class="kk">
	<header class="login_header">
		<div class="login_header_bar">
			<h1 class="fw l">
				<fmt:message key="app.name" />
			</h1>
			<i class="l">|</i>
			<h2 class="fw l">用户注册</h2>
		</div>
	</header>
	<div class="container">
		<section class="row">
			<hgroup class="col-lg-2"></hgroup>
			<hgroup class="col-lg-8">
				<br>
				<br>
				<br>
				<div class="row">
					<div class="regist_title_bar">
						<h2 class="regist_title">欢迎注册和使用本系统</h2>
					</div>
					<section class="regist_box fix">
						<br>
						<div class="col-lg-7">
							<section class="starter-template">
								<form modelAttribute="account" class="form-horizontal"
									id="my_form" role="form" action="${reqRoot}/add" method="post">
									<div class="form-group">
										<label class="col-lg-3 control-label" for="exampleInputEmail1">账号：</label>
										<div class="col-lg-9">
											<input type="text" class="form-control" id="name" name="name"
												placeholder="只允许字母、数字、中横线、下划线">
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label"
											for="exampleInputPassword1">密码：</label>
										<div class="col-lg-9">
											<input type="password" class="form-control" id="password"
												name="password" placeholder="密码">
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label"
											for="exampleInputPassword1">密码确认：</label>
										<div class="col-lg-9">
											<input type="password" class="form-control"
												id="repeatPassword" name="repeatPassword"
												placeholder="请再次输入密码">
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label" for="exampleInputEmail1">姓名：</label>
										<div class="col-lg-9">
											<input type="text" class="form-control"
												id="exampleInputEmail1" name="username" value=${user.name}>
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label" for="exampleInputEmail1">手机：</label>
										<div class="col-lg-9">
											<input type="text" class="form-control"
												id="exampleInputEmail1" name="phone" value=${user.phone}>
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label" for="exampleInputEmail1">电子邮件：</label>
										<div class="col-lg-9">
											<input type="text" class="form-control"
												id="exampleInputEmail1" name="email" value=${user.email}>
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label" for="unit">班级</label>
										<div class="col-lg-9 rel">
											<div class="popover fade bottom in" id="element"
												style="display: block; left: 0; top: 36px; width: 100%; max-width: 1000px; display: none;">
												<div class="arrow"></div>
												<h3 class="popover-title">班级选择</h3>
												<div class="popover-content">
													<ul id="appTree" class="ztree"></ul>
												</div>
											</div>
											<input class="form-control" id="unit" name="unit"
												readonly="readonly" value="${user.account.unit.name}"
												data-value="${user.account.unit.id}">
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label" for="teacher">教师</label>
										<div class="col-lg-9">
											<select type="text" class="form-control" id="teacher"
												name="teacher" data-value="${user.teacher.id}"></select>
										</div>
									</div>
									<div class="form-group">
										<label class="col-lg-3 control-label" for="graduate">毕业年份</label>
										<div class="col-lg-9">
											<select class="form-control" id="graduate" name="graduate"
												data-value=${user.graduate}></select>
										</div>
									</div>

								 	<div class="form-group">
										<label class="col-lg-3 control-label" for="exampleInputEmail1">学位</label>
										<div class="col-lg-9">
											<select class="form-control" id="degree" name="degree"
												data-codelist="STUDENT-DEGREE" data-value="${user.degree}"></select>
										</div>
									</div> 

									<div class="form-group">
										<div class="col-lg-3"></div>
										<div class="col-lg-9">
											<button type="submit" class="btn btn-success" id="submit">立即注册</button>
										</div>
									</div>
								</form>
							</section>
						</div>
						<div class="col-lg-5">
							<br> <br> <img class="img-responsive"
								src="${image_path}/shared/register.jpg">
						</div>
					</section>
				</div>
				<!-- /row -->
			</hgroup>
			<hgroup class="col-lg-2"></hgroup>
		</section>
	</div>
	<br>
	<!-- /.container -->
	<script src="${cmpRoot}/regist_index.js"></script>
</body>
</html>
